const koa = require('koa')
const Router = require('koa-router');
const bodyParser = require('koa-bodyparser')
const myRouter = require('./routers/my')
const movieRouter = require('./routers/movie')
//express : const app = express();
const app = new koa()
//express: (req,res)

app.use(bodyParser())

var router= new Router()
router.use('/my',myRouter.routes())
router.use('/movie',movieRouter.routes())

app.use(router.routes())

app.listen(3000, () => {
  console.log('localhost:3000 start..')
})